export const filterState = value => {
  switch (Number(value)) {
    case 0:
      return "未归档";
    case 1:
      return "已归档";
    case 2:
      return "历史文档";
    default:
      return "";
  }
};

export const filterBorrowState = value => {
  switch (Number(value)) {
    case 0:
      return "借阅申请中";
    case 1:
      return "通过";
    case 2:
      return "拒绝";
    case 3:
      return "已过期";
    case 4:
      return "已归还";
    default:
      return "";
  }
};

export const filterReturnState = value => {
  switch (Number(value)) {
    case 0:
      return "归还申请中";
    case 1:
      return "通过";
    case 2:
      return "拒绝";
    case 3:
      return "已过期";
    case 4:
      return "已归还";
    default:
    return ""
  }
};

export const filterMediumType = value => {
  switch (Number(value)) {
    case 0:
      return "电子档案";
    case 1:
      return "纸质档案";
    default:
      return ""
  }
};

export const filterReturnResult = value => {
  switch (Number(value)) {
    case 0:
      return "归还申请中";
    case 1:
      return "已通过";
    case 2:
      return "已拒绝";
    default:
      return ""
  }
};

export const filterRenew = value => {
  switch (Number(value)) {
    case 0:
      return "续借申请";
    case 1:
      return "同意续借";
    case 2:
      return "拒绝续借";
    default:
      return "暂无";
  }
};
